package com.itheima.log;

import java.util.ArrayList;

public class Mymethod {

    @Test
    public void method1(){
        int a = 10;
        a = a / 0;
        System.out.println("a = " + a);
    }

    @Test
    public void method2(){
        ArrayList<String> list = new ArrayList();
        list.add("122");
        list.add("222");
        list.add("333");
        for (String s : list) {
            list.add("444");
        }
    }

    @Test
    public void method3(){
        int a = 10;
        int b = 20;
    }

    @Test
    public void method4(){
        int[] arr = {1,2,3};
        int a = arr[5];
        System.out.println("a = " + a);
    }
}
